package com.dyh.quickdemozwei.ccclinet;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: yhdong
 * @Date: 2021/12/21 13:40
 */
@Configuration
public class CcclientConfig {

    @Bean
    BaseClinet baseClinet(){
        return new BaseClinet();
    }

    @Bean
    ClientC1 clientC1(BaseClinet baseClinet){
        return new ClientC1(baseClinet);
    }

    @Bean
    ClientC2 clientC2(ClientC1 clientC1,AutoSessionSevc autoSessionSevc){
        return new ClientC2(clientC1,autoSessionSevc);
    }


}
